home *** CD-ROM | disk | FTP | other *** search
/ Agent Central Host Computer / Agent - Central Host Computer.iso / _SETUP.1 / vbusprobedetail.sql < prev    next >
Text File  |  2000-05-12  |  1KB  |  36 lines

  1. /*
  2. shows detail of coins and bills for probed cash. otherwise has same data as vbusprobe50
  3. */
  4. CREATE OR REPLACE VIEW VBUSPROBEDETAIL AS 
  5. select probehist.pdate,  
  6. probehist.conversion_num,  
  7. probehist.cbintent pull,  
  8. vbpmoneydet.probedcash,  
  9. vbpmoneydet.cents_$,  
  10. vbpmoneydet.nickels_$,  
  11. vbpmoneydet.dimes_$,  
  12. vbpmoneydet.quarters_$,  
  13. vbpmoneydet.halfs_$,  
  14. vbpmoneydet.sbas_$,  
  15. vbpmoneydet.coin_total,  
  16. vbpmoneydet.ones_$,  
  17. vbpmoneydet.fives_$,  
  18. vbpmoneydet.tens_$,  
  19. vbpmoneydet.twenties_$,  
  20. vbpmoneydet.bill_total,  
  21. vbpmoneydet.totalcash,  
  22. vbpmoneydet.cashbox_glid,  
  23. vbpmoneydet.close_count,  
  24. vprevinsert.insert_date,  
  25. probehist.farebox_GLID  ,  
  26. BUS.BUS_ID  ,  
  27. GARAGE.GARAGE_ID  
  28. from probehist, vbpmoneydet , vprevinsert ,  farebox, bus , garage  
  29. where probehist.conversion_num = vbpmoneydet.conversion_num and  
  30. vbpmoneydet.conversion_num = vprevinsert.conversion_num(+) and  
  31. vbpmoneydet.close_count = vprevinsert.close_count(+)  and  
  32. PROBEHIST.FAREBOX_GLID = FAREBOX.GLID AND  
  33. FAREBOX.LOCATION = BUS.GLID  AND  
  34. BUS.GARAGEID = GARAGE.GLID;
  35.  
  36.